package cn.myschool.entity;

import java.sql.Date;

public class ExamResult {
    private int id;
    private Date exam_date;
    private float score;
    private int stid;
    private int sbid;
    private Subject sub;

    public ExamResult() {
    }

    public ExamResult(Date exam_date, float score, int stid, int sbid) {
        this.exam_date = exam_date;
        this.score = score;
        this.stid = stid;
        this.sbid = sbid;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public Date getExam_day() {
        return exam_date;
    }

    public void setExam_day(Date exam_day) {
        this.exam_date = exam_day;
    }

    public float getScore() {
        return score;
    }

    public void setScore(float score) {
        this.score = score;
    }

    public int getStid() {
        return stid;
    }

    public void setStid(int stid) {
        this.stid = stid;
    }

    public int getSbid() {
        return sbid;
    }

    public void setSbid(int sbid) {
        this.sbid = sbid;
    }

    public Date getExam_date() {
        return exam_date;
    }

    public void setExam_date(Date exam_date) {
        this.exam_date = exam_date;
    }

    public Subject getSub() {
        return sub;
    }

    public void setSub(Subject sub) {
        this.sub = sub;
    }

    @Override
    public String toString() {
        return "成绩{" +
                "id=" + id +
                ", exam_date=" + exam_date +
                ", score=" + score +
                ", stid=" + stid +
                ", sbid=" + sbid +
                '}';
    }
}
